package com.rong.kim.agenttest.controller;

import com.rong.kim.common.Lion;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
public class HelloController {

    @GetMapping("/hello1")
    public String hello1() throws InterruptedException {
        Lion lion = new Lion();
        lion.runLion();
        return "Hi";
    }

    @GetMapping("/hello2")
    public String hello2() throws InterruptedException {
        Lion lion = new Lion();
        lion.runLion(1, new ArrayList());
        return "Hi 2";
    }

    @GetMapping("/hello3")
    public String hello3() throws InterruptedException {
        Lion.runLion(2, 5L);
        return "Hi 3";
    }
}
